textbuffer: Be careful with tags when copying
authorMatthias Clasen <mclasen@redhat.com>
Sun, 2 Aug 2020 17:54:06 +0000 (13:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 2 Aug 2020 17:54:06 +0000 (13:54 -0400)
commit0add6268224e705f6e3f8f26289846e046098a81
tree1913d374ec3c49aa6065503d24180f0408e44f62
parent793ea05f4a30d8b1d36a8fba8be56209eecd5549
textbuffer: Be careful with tags when copying

We can only insert tags in the buffer if they come
from the same GtkTextTagTable as the buffer uses.
If that is not the case, paste the text without tags.

Fixes: #2991
gtk/gtktextbuffer.c